---
title: Installation
description: How to install llamaindex packages.
---

To install llamaindex, run the following command:

```package-install
npm i llamaindex
```

In most cases, you'll also need an LLM package to use LlamaIndex. For example, to use the OpenAI LLM, you would install the following:

```package-install
npm i @llamaindex/openai
```

Go to [LLM APIs](/docs/llamaindex/modules/models/llms) to find out how to use other LLMs.


## Frameworks

LlamaIndex supports a wide range of frameworks and runtimes. Click on the card below to learn more.

<Cards>
	<Card title={
		<>
			<SiNodedotjs className="inline" color="#5FA04E" /> Node.js
		</>
	} href="/docs/llamaindex/getting_started/installation/node" />
	<Card title={
		<>
			<SiTypescript className="inline" color="#3178C6" /> TypeScript
		</>
	} href="/docs/llamaindex/getting_started/installation/typescript" />
	<Card title={
		<>
			<SiVite className='inline' color='#646CFF' /> Vite
		</>
	} href="/docs/llamaindex/getting_started/installation/vite" />
	<Card
		title={
			<>
				<SiNextdotjs className='inline' /> Next.js (React Server Component)
			</>
		}
		href="/docs/llamaindex/getting_started/installation/next"
	/>
	<Card title={
		<>
			<SiCloudflareworkers className='inline' color='#F38020' /> Cloudflare Workers
		</>
	} href="/docs/llamaindex/getting_started/installation/cloudflare" />
</Cards>

## What's next?

<Cards>
	<Card
		title="Learn LlamaIndex.TS"
		description="Learn how to use LlamaIndex.TS by starting with one of our tutorials."
		href="/docs/llamaindex/tutorials/rag"
	/>
	<Card
		title="Show me code examples"
		description="Explore code examples using LlamaIndex.TS."
		href="/docs/llamaindex/getting_started/examples"
	/>
</Cards>
